﻿@model BskLeague.Models.Season

@{
    ViewBag.Title = "CreateSeaon";
}

<h2>CreateSeaon</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
        <div class="editor-label">
            @Html.LabelFor(model => model.SeasonName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SeasonName)
            @Html.ValidationMessageFor(model => model.SeasonName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Status)
        </div>
    
        <div>
            @Html.DropDownList("StatusId", ViewBag.Items as List<SelectListItem>)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>

}

<div>
    @Html.ActionLink("Powrót do listy", "ManageSeasons")
</div>
